package com.hooya.fa.eu.biz.business.service;


import com.hooya.fa.eu.biz.dao.mapper.StkOrigDataCollectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
public class Update_InvoiceNo {

    @Autowired
    private StkOrigDataCollectMapper stkOrigdataCollectMapper;
    
    /**
     * 更新发票号
     * @param startDate 开始日期
     * @param endDate 结束日期
     */
    @Transactional
    public void update_invoiceno(String startDate, String endDate) {
        log.info("开始更新发票号，日期范围：{} 至 {}", startDate, endDate);
        
        //  TODO -- 执行更新SQL -- 后续取消注释
//        int updatedCount = stkOrigdataCollectMapper.updateInvoiceNoByInvoiceId(startDate, endDate);
        
//        log.info("发票号更新完成，共更新 {} 条记录", updatedCount);
    }
}
